<html>
<head>
  <title></title>
  <link rel="stylesheet" href="docs.css" type="text/css"/>
</head>
<body class="docs">
<h1 class="heading">OUTPUT: From static file</h1>
<div class="comment">Given a relative file path and a base directory it will read the file and write it to the output. 
Content type default is based on the extension of the controller's extension 
(e.g. http://localhost/foo.png will be image/png while http:/localhost/foo will use default)
Extension map is in mime_types.ini and default is found in AObjectServer.xml
</div>
<br />
<h5 class="heading">USAGE</h5>
<xmp class="code_xml"><output type="File">
  <filename base="static | data | dynamic | absolute">someimage.png</filename>
  <mime-extension>png</mime-extension>
</output></xmp>
<pre>
filename: filename of the static file (relative to the base or absolute if base is absolute) 
  base: base directory where the file can be found
    static   - aos_static (default)
    data     - aos_data
    dynamic  - aos_dynamic
    absolute - the path is the fully qualified path to the file (a bit dangerous)

mime-extension: (optional) sets the MIME content type, if not present, the extension of the filename is used (and if there is non, XML is the default)
</pre>
<br />
<h5 class="heading">OUTPUT</h5>
Contents of the file specified<br />
<br />
<h5 class="heading">EXAMPLES</h5>
<div class="code_xml">&lt;output type="File"&gt;
  &lt;path base="data">mydir/myfile.txt&lt;/path&gt;
&lt;/output&gt;</div>
<div class="comment">Reads $AOS_DATA/mydir/myfile.txt and writes it as output.</div>
<br />
</body></html>
